package com.linkage.lcims.base.dao.business.impl;

import java.util.List;

import com.linkage.lcims.base.dao.HibernateBaseDAOImpl;
import com.linkage.lcims.base.dao.business.interfaces.ZoneDAO;
import com.linkage.lcims.base.po.business.BdZone;
import com.linkage.util.exception.DAOException;

public class ZoneDAOImpl extends HibernateBaseDAOImpl implements ZoneDAO{

	public void deleteZone(BdZone zone) throws DAOException {
		this.delete(zone);
	}

	@SuppressWarnings("unchecked")
	public List<BdZone> getAll() throws DAOException {
		return this.getAll(BdZone.class);
	}

	public BdZone getZone(String zoneid) throws DAOException {
		return (BdZone)this.getByID(BdZone.class, zoneid);
	}

	public void saveZone(BdZone zone) throws DAOException {
		this.save(zone);
	}

	public void updateZone(BdZone zone) throws DAOException {
		this.merge(zone);
	}

}
